Release 10.1A: OpenEdge Development:
Progress 4GL Reference


Progress.Lang.Class class

Progress.Lang.Class provides type information about a class or an interface. Progress provides a Progress.Lang.Class object instance for each user-defined class or interface in the OpenEdge session.

You can use the Progress.Lang.Class object instance to access class information from any object instance of a user-defined class using the following syntax:

proclass-reference = object-reference:GetClass( ). 

Where object-reference is the object reference for an object instance of the class type for which to get type information, and proclass-reference is the object reference for the Progress.Lang.Class object instance. For example:

DEFINE VARIABLE myCustObj AS acme.myObjs.CustObj. 
DEFINE VARIABLE myType AS CLASS Progress.Lang.Class. 
myCustObj = NEW acme.myObjs.CustObj ( ).  
myType = myCustObj:GetClass( ). 

Progress.Lang.Class is FINAL and cannot be inherited by another class. You cannot delete a Progress.Lang.Class object instance.

Inherits

Progress.Lang.Object class

Implements

This class does not implement an interface.

Data
members

This class contains the following data members:

Package AS CHARACTER

The package portion of the user-defined class or interface type name. If the class or interface type name does not contain a package, the value of this data member is the Unknown value (?).

For more information about user-defined type names, see the Type-name syntax reference entry in this book.

This data member is read-only.

SuperClass AS Progress.Lang.Class

The object reference for the super class type information, if the user-defined class is a subclass. Otherwise, the value of this data member is the Unknown value (?).

This data member is read-only.

TypeName AS CHARACTER

The type name of the class or interface, which consists of the package and the class or interface name.

For more information about user-defined type names, see the Type-name syntax reference entry in this book.

This data member is read-only.

Methods

This class contains the following methods:

METHOD PUBLIC LOGICAL IsInterface ( )

If the class is defined as an interface, this method returns TRUE. Otherwise, it returns FALSE.

METHOD PUBLIC LOGICAL IsFinal ( )

If the class is defined as FINAL, this method returns TRUE. Otherwise, it returns FALSE.

Note

This class does not contain a constructor method. Thus, you cannot create an object instance of this class using the NEW statement. To obtain the object reference for the Progress.Lang.Class object instance associated with the current user-defined class object, you must use the GetClass( ) method in the Progress.Lang.Object class.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095